package com.lcf.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcf.framework.vo.PageVO;
import com.lcf.system.dto.GoodsCommentDTO;
import com.lcf.system.entity.GoodsComment;
import com.lcf.system.query.GoodsCommentPageQuery;
import com.lcf.system.vo.GoodsCommentVO;

/**
 * 商品评价(GoodsComment)表服务接口
 *
 * @author lcf
 * @since 2025-05-02 11:55:01
 */
public interface GoodsCommentService extends IService<GoodsComment> {
    /**
     * 新增
     */
    boolean addGoodsComment(GoodsCommentDTO dto);
    /**
     * 删除
     */
    boolean deleteGoodsComment(long id);
    /**
     * 修改
     */
    boolean updateGoodsComment(long id, GoodsCommentDTO dto);
    /**
     * 根据id查询
     */
    GoodsCommentVO getGoodsComment(long id);
    /**
     * 分页查询
     */
    PageVO<GoodsCommentVO> getGoodsCommentList(GoodsCommentPageQuery query);
}

